package com.learn.file.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.learn.file.entity.UploadFile;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author YU.TAN
 * @since 2022-11-14
 */
public interface UploadFileService extends IService<UploadFile> {

    void upload(MultipartFile multipartFile) throws Exception;

    void download(Integer id, HttpServletResponse response) throws Exception;

    void delete(int id) throws Exception;
}
